package sphere.model;

public class Sphere {
	private double surface;
	private double volume;
	private int rayon;
	public Sphere(int r){
		rayon=r;
	}
	public int getRayon()
	{
		return this.rayon;
	}
	public void setRayon(int r){
		this.rayon=r;
	}
	
	public double surface(){
		this.surface= (4*Math.PI)*(Math.pow(this.rayon, 2));
		return this.surface;
		
	}
	public double volume(){
		this.volume= (4*Math.PI)*(Math.pow(this.rayon, 3))/3;
		return this.volume;
	}

}
